﻿<UserControl x:Class="DIST.LR.ZHJG.Controls.Chart.FlowLayoutControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:lc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol"
    xmlns:cchart="clr-namespace:DIST.LR.ZHJG.Controls.Chart;assembly=DIST.LR.ZHJG.Controls.Silverlight"
    xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts"  
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="800" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit">
    <UserControl.Resources>
        <Style x:Key="myGroupBoxStyle" TargetType="lc:GroupBox">
            <!--控制最大小化，当前最关心的一项最大化显示，当为FlowLayoutControl成员时，是一个依赖属性-->
            <Setter Property="MaximizeElementVisibility" Value="Visible"/>
            <!--控制折叠隐藏-->
            <Setter Property="MinimizeElementVisibility" Value="Visible"/>
            <Setter Property="Width" Value="350"/>
            <Setter Property="Height" Value="200"></Setter>
            <Setter Property="Margin" Value="5,5,5,5"></Setter>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="White">       
        <lc:FlowLayoutControl x:Name="FlowLayout" Orientation="Vertical" Background="#FFFAFAFA" BreakFlowToFit="True" ScrollBars="None" MaximizedElementPosition="Right" MaximizedElement="{Binding ElementName=groupBox1}">
            <lc:GroupBox   MaximizeElementVisibility="Collapsed" MinimizeElementVisibility="Collapsed" Background="#FFD3F225" Style="{StaticResource  myGroupBoxStyle}" BorderBrush="#FFFF79EF">
                <TextBlock  TextWrapping="Wrap" Text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed molestie porttitor congue..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="新增建设用地" TitleBackground="#FF3D6CAD"  Foreground="White" FontWeight="Black" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Left" Style="{StaticResource  myGroupBoxStyle}">
                <cchart:ucVFDoughnut></cchart:ucVFDoughnut>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 3" Style="{StaticResource  myGroupBoxStyle}" MouseRightButtonDown="GroupBox_MouseLeftButtonDown">
                <cchart:D_Ndnzyjhzb></cchart:D_Ndnzyjhzb>
            </lc:GroupBox>
            <lc:GroupBox  Header="新增建设用地" TitleBackground="#FF3D6CAD"  Foreground="White" FontWeight="Black" FontSize="20" VerticalAlignment="Center" HorizontalAlignment="Left" Width="600" Height="415" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Nunc diam justo, tempus sit amet..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 5" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Quisque iaculis, risus ac bibendum ornare..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 6" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Ut sagittis urna et lorem..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 7" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Nunc diam justo, tempus sit amet..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 8" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Quisque iaculis, risus ac bibendum ornare..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 9" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Ut sagittis urna et lorem..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 10" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Nunc diam justo, tempus sit amet..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 11" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Quisque iaculis, risus ac bibendum ornare..."/>
            </lc:GroupBox>
            <lc:GroupBox  Header="Group 12" Style="{StaticResource  myGroupBoxStyle}">
                <TextBlock  TextWrapping="Wrap" Text="Quisque iaculis, risus ac bibendum ornare..."/>
            </lc:GroupBox>
        </lc:FlowLayoutControl>
        
    </Grid>
</UserControl>
